import config from "@/config";
import http from "@/utils/request";

export default {
    list: {
        url: `${config.API_URL}/marketing.week/index`,
        name: "获取一周限定",
        get: async function (data = {}) {
            return await http.get(this.url, data);
        },
    },
    edit: {
        url: `${config.API_URL}/marketing.week/edit`,
        name: "编辑一周限定",
        post: async function (data = {}) {
            return await http.post(this.url, data);
        },
    },
    getInfo: {
        url: `${config.API_URL}/marketing.week/edit`,
        name: "获取盲盒信息",
        get: async function (data = {}) {
            return await http.get(this.url, data);
        },
    },
    add: {
        url: `${config.API_URL}/marketing.week/add`,
        name: "添加一周限定",
        post: async function (data = {}) {
            return await http.post(this.url, data);
        },
    },
    del: {
        url: `${config.API_URL}/marketing.week/del`,
        name: "删除一周限定",
        get: async function (data = {}) {
            return await http.get(this.url, data);
        },
    },
};